package com.pay.game.central.web.mapper;

import com.pay.game.central.web.bean.Directory;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface DirectoryMapper {

    @Insert("insert into directory(`key`,`value`) values(#{key}, #{value})")
    void add(Directory directory);

    @Update("update directory directory set `value` = #{value} where `key` = #{key}")
    void update(Directory directory);

    @Select("select `key`,`value` from directory where `key`=#{key}")
    Directory getValue(@Param("key") String key);



}
